// 1.手动修改
// const BASE_URL = 'http://red.org/dev';
// const BASE_NAME = 'red';

// const BASE_URL = 'http://red.org/prod';
// const BASE_NAME = 'blue';

// const BASE_URL = 'http://red.org/test';
// const BASE_NAME = 'green';

// 2.根据process.env.NODE_ENV区分
// 开发环境: development; npm run serve
// 生产环境: production; npm run build
// 测试环境: test;

let BASE_URL = '';
const TIME_OUT = 10000;

if (process.env.NODE_ENV === 'development') {
  BASE_URL = '/api';
} else if (process.env.NODE_ENV === 'production') {
  BASE_URL = 'http://152.136.185.210:5000';
} else {
  BASE_URL = 'http://red.org/test';
}

export { BASE_URL, TIME_OUT };
